[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
##############################################################################
###+-----------+##############################################################
#+-| M_EXIST() |---------------------------------------+######################
#| +-----------+ Returns TRUE if memo_field exists for |######################
#|               the current record of active database |######################
#+-----------------------------------------------------+######################
##############################################################################
##############################################################################
#+--| Summary |--------------+################################################
#|     #INCLUDE memo.hdr     |################################################
#+---------------------------+################################################
##############################################################################
##############################################################################
#+--| Syntax |--------------------------------+###############################
#|     FUNCTION LOGICAL m_exist PROTOTYPE     |###############################
#|      PARAMETERS MEMO memo_field            |###############################
#+--------------------------------------------+###############################
##############################################################################
##############################################################################
#########+---| Description |----------------------------------------+#########
#########| The m_exist() function returns TRUE if memo_field exists |#########
#########| for the current record of the active database.  Use      |#########
#########| m_exist() to determine whether a memo should be created  |#########
#########| when it is opened, or opened for appending.              |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| *    See if a memo exists for a customer.                |#########
#########|                                                          |#########
#########| IF .NOT. m_exist( comment )                              |#########
#########|     ? "Sorry, memo field does not exist."                |#########
#########| ENDIF                                                    |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| *    List all students who do not have review notes.     |#########
#########|                                                          |#########
#########| SET ALTERNATE TO "noreview.txt"                          |#########
#########| SET ALTERNATE ON                                         |#########
#########| LIST FOR .NOT. m_exist( s->review )                      |#########
#########| CLOSE ALTERNATE                                          |#########
#########+----------------------------------------------------------+#########
##############################################################################

See Also: m_close m_edit m_eof() m_getln m_open ...
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson